package cn.hsa.fqz.task.dao;

import cn.hsa.fqz.task.entity.TTaskSqlExecute;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface TTaskSqlExecuteMapper {

    int deleteByPrimaryKey(Integer id);

    int insert(TTaskSqlExecute record);

    int insertSelective(TTaskSqlExecute record);

    TTaskSqlExecute selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(TTaskSqlExecute record);

    int updateByPrimaryKey(TTaskSqlExecute record);

    int changeStatus(@Param("id") Integer id, @Param("status") Integer status);

    List<TTaskSqlExecute> getMultiSQLByMenuId(String menuId);

    List<TTaskSqlExecute> getMultiSQLByTaskId(String taskId);

    List<TTaskSqlExecute> getClueSqlExecuteBytTaskId(String taskId);

    String getTableNameByTaskId(String taskId);
}
